#include "LocalVertexFactory.h"

namespace Alice
{
    void LocalVertexFactory::GetVertexElements(EVertexInputStreamType InputStreamType, bool bSupportsManualVertexFetch, FDataType& Data, VertexDeclarationElementList& Elements, VertexStreamList& InOutStreams, int32& OutColorStreamIndex)
    {
        Elements[0]=AccessStreamComponent(Data.PositionComponent,0,InOutStreams);
    }
    void LocalVertexFactory::InitRHI(CGICommandListBase& inCGICmdList)
    {
        VertexDeclarationElementList elements;
        GetVertexElements(EVertexInputStreamType::Default,false,Data,elements,mVertexStreams,ColorStreamIndex);
        InitDeclaration(elements);
    }
    void LocalVertexFactory::SetData(CGICommandListBase& inCGICmdList, const FDataType& inData)
    {
        Data=inData;
    }
}